// const host = 'http://172.16.6.235:40080'; // master
// const host = 'https://worktest8.vvtechnology.cn';
// const host = 'https://workpre.vvtechnology.cn';
const host = 'https://workdev1.vvtechnology.cn';
// const host = 'https://workdev-business1.vvtechnology.cn/';
// const host = 'https://worktest3.vvtechnology.cn';
// const host = 'https://workpre.vvtechnology.cn';
// const host = 'https://work.vvtechnology.cn:88/';
// const host = 'https://workpre.vvtechnology.cn/';
// const host = 'https://www.6569.com/'
export default {
    proxy: {
        '/api': {
            changeOrigin: true,
            target: host
            // secure: false
        }
    },
    chainWebpack: config => {
        config.devServer.proxy({
            '/api/ws': {
                target: host,
                changeOrigin: true,
                ws: true,
                onProxyReqWs: (proxyReq, req, socket) => {
                    socket.on('error', function(error) {
                        console.warn('Websockets error.', error);
                    });
                }
            }
        });
    }
};
